<template>
  <div class="slotScoped">
    slotScoped组件
    <div v-for="(item, index) in name" :key="item+index">{{item}}
      <slot :item="item" :index="index"></slot>
    </div>
  </div>
</template>
<script>
export default {
  data () {
    return {}
  },
  props: {
    name: {
      type: Array,
      default: () => []
    }
  }
}
</script>
<style scoped>
</style>
